<template>
<el-row class="tac" :gutter="10">
    <el-col :span="4">
      <el-menu
        active-text-color="#ffd04b"
        background-color="#545c64"
        router
        class="el-menu-vertical-demo"
        default-active="/mine/info"
        text-color="#fff"
        @open="handleOpen"
        @close="handleClose"
      >
      <el-menu-item index="/mine/task">
          <el-icon><setting /></el-icon>
          <span>任务</span>
        </el-menu-item>
        <el-menu-item index="/mine/info">
          <el-icon><setting /></el-icon>
          <span>个人信息</span>
        </el-menu-item>
        
      </el-menu>
    </el-col>
    <el-col :span="20" style="padding:20px;">
      <router-view></router-view>
      
    </el-col>
  </el-row>
  
</template>

<script setup lang="ts">
import {
  Location,
  Document,
  Menu as IconMenu,
  Setting,
} from '@element-plus/icons-vue'
const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}

</script>

<style>

</style>